package interact

type pages map[string]interface{}

type globalSetting struct {
	ContinuousBackinWords globalSettingContinuousBackinWords `json:"continuousBackinWords"`
	ContinuousBackSlience globalSettingContinuousBackSlience `json:"continuousBackSlience"`
	SaidNothing           globalSettingSaidNothing           `json:"saidNothing"`
	SaidWrong             globalSettingSaidWrong             `json:"saidWrong"`
	ReadOver              globalSettingReadOver              `json:"readOver"`
	RetryAsk              globalSettingRetryAsk              `json:"retryAsk"`
	MaxRecording          int                                `json:"maxRecording"`
	PerPageQuestion       globalSettingPerPageQuestion       `json:"perPageQuestion"`
}

type globalSettingContinuousBackinWords struct {
	Num        int    `json:"num"`
	RetryReset bool   `json:"retryReset"`
	Sound      string `json:"sound"`
	Hash       string `json:"hash"`
}

type globalSettingContinuousBackSlience struct {
	Num   int    `json:"num"`
	Sound string `json:"sound"`
	Hash  string `json:"hash"`
}

type globalSettingSaidNothing struct {
	Sound string `json:"sound"`
	Hash  string `json:"hash"`
}

type globalSettingSaidWrong struct {
	Sound string `json:"sound"`
	Hash  string `json:"hash"`
}

type globalSettingReadOver struct {
	Sound string `json:"sound"`
	Hash  string `json:"hash"`
}

type globalSettingRetryAsk struct {
	Time int `json:"time"`
}

type globalSettingPerPageQuestion struct {
	ProbabilityMode string `json:"probabilityMode"`
	Num             int    `json:"num"`
}

type questionSetting struct {
	Before       questionSettingBefore      `json:"before"`
	SaidNothing  questionSettingSaidNothing `json:"saidNothing"`
	SaidWrong    questionSettingSaidWrong   `json:"saidWrong"`
	NoRecord     bool                       `json:"noRecord"`
	Sound        string                     `json:"sound"`
	Hash         string                     `json:"hash"`
	MaxRecording int                        `json:"maxRecording"`
	Keyword      []string                   `json:"keyword"`
	Award        questionSettingAward       `json:"award"`
}

type questionSettingBefore struct {
	Sound string `json:"sound"`
	Hash  string `json:"hash"`
}

type questionSettingSaidNothing struct {
	Sound string `json:"sound"`
	Hash  string `json:"hash"`
}

type questionSettingSaidWrong struct {
	Sound string `json:"sound"`
	Hash  string `json:"hash"`
}

type questionSettingAward struct {
	Num   int    `json:"num"`
	Sound string `json:"sound"`
	Hash  string `json:"hash"`
}
